﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShopOnline
{
    public class ObjectResult
    {
        private bool _IsSuccess;
        private string _Description;

        public bool IsSuccess
        {
            get { return _IsSuccess; }
            set { _IsSuccess = value; }
        }
        

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        public ObjectResult(bool t_IsSucess, string t_Description)
        {
            _IsSuccess = t_IsSucess;
            _Description = t_Description;
        }

    }

    public class sOtherResult: ObjectResult {
        private string _Other;

        public string Other
        {
            get { return _Other; }
            set { _Other = value; }
        }

        public sOtherResult(bool t_IsSucess, string t_Description)
            : base(t_IsSucess, t_Description)
        {
            
        }

        public sOtherResult(bool t_IsSucess, string t_Description, string t_Other)
            : base(t_IsSucess, t_Description)
        {
            _Other = t_Other;
        }
    }



}
